style.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #postEdit {
  2. padding: 1.5625rem 2rem 2rem 2rem;
  3. h1 {
  4. font-size: 1.375rem;
  5. margin-bottom: 1.25rem;
  6. }
  7. min-width: 25.75rem;
  8. max-width: 80rem;
  9. margin: 0 auto;
  10. fieldset {
  11. display: flex;
  12. flex-direction: column;
  13. gap: 0;
  14. min-width: 0;
  15. section {
  16. margin-bottom: 0.4375rem;
  17. select, input, textarea {
  18. padding: 0.625rem;
  19. border-color: var(--border-strong);
  20. border-width: 0.0625rem;
  21. &:focus {
  22. border: 0.0625rem solid hsl(218, 81.8%, 56.9%);
  23. box-shadow: 0.125rem 0.125rem 0.1875rem var(--shadow-color) inset, 0 0;
  24. outline: none;
  25. }
  26. }
  27. // 분류, 말머리, 비밀글, 공지, 전체 공지
  28. &:nth-of-type(1) {
  29. display: grid;
  30. grid-template-columns: repeat(auto-fit, minmax(0, max-content));
  31. justify-content: flex-start;
  32. align-items: center;
  33. gap: 0.4375rem;
  34. article {
  35. &:last-of-type {
  36. margin-left: 0.625rem;
  37. }
  38. label {
  39. padding-left: 0.625rem;
  40. padding-right: 0.75rem;
  41. cursor: pointer;
  42. }
  43. }
  44. }
  45. // 제목
  46. &:nth-of-type(2) {
  47. input {
  48. width: 100%;
  49. }
  50. }
  51. // CKEditor
  52. &:nth-of-type(3) {
  53. overflow: visible;
  54. box-sizing: border-box;
  55. margin-bottom: 0;
  56. > textarea {
  57. display: block;
  58. width: 100%;
  59. min-height: 18.75rem;
  60. border-bottom-left-radius: 0;
  61. border-bottom-right-radius: 0;
  62. }
  63. }
  64. // 태그
  65. &#postTag {
  66. margin-bottom: 0;
  67. padding: 0.5rem 0.625rem 0.4375rem 0.625rem;
  68. border: 0.0625rem solid var(--border-strong);
  69. border-width: 0 0.0625rem 0.0625rem 0.0625rem;
  70. position: relative;
  71. bottom: 0.0625rem;
  72. > .tag-input {
  73. display: flex;
  74. flex-direction: row;
  75. flex-wrap: wrap;
  76. justify-content: flex-start;
  77. align-items: center;
  78. gap: 0.625rem;
  79. > .tag {
  80. border: 0.0625rem solid var(--border-strong);
  81. border-radius: 0.125rem;
  82. padding: 0.0625rem 0.625rem;
  83. background-color: var(--bg-elevated);
  84. > small {
  85. font-weight: normal;
  86. color: var(--text-primary);
  87. &:hover {
  88. text-decoration: underline;
  89. }
  90. }
  91. > button {
  92. display: inline-block;
  93. vertical-align: text-bottom;
  94. margin-left: 0.4375rem;
  95. color: rgb(173, 0, 0);
  96. &:hover {
  97. color: red;
  98. }
  99. }
  100. }
  101. > input {
  102. border: transparent;
  103. flex-grow: 1;
  104. flex-basis: 0;
  105. &:hover,
  106. &:focus {
  107. border: transparent;
  108. box-shadow: none;
  109. outline: none;
  110. }
  111. }
  112. }
  113. }
  114. // 비회원 글쓰기
  115. &#anonymous {
  116. display: grid;
  117. grid-template-columns: repeat(auto-fit, minmax(0, max-content));
  118. justify-content: flex-start;
  119. align-items: center;
  120. gap: 0.4375rem;
  121. margin-top: 0.4375rem;
  122. }
  123. // 확인, 취소
  124. &:last-of-type {
  125. display: grid;
  126. grid-template-columns: auto auto;
  127. justify-content: center;
  128. align-items: center;
  129. gap: 0.4375rem;
  130. }
  131. }
  132. }
  133. }